package com.lyhw.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;


public class Article implements Serializable {
    public static enum  Phase{COMPLETE,DRAFT};
    private String id;							//文章id
    private String title;						//文章标题
    private String mainpic;				//文章主图
    private String content;				//文章内容
    private String author;					//文章作者
    private long crtime;					//创建时间
    private String typeid;					//文章所属分类
    private int phase;			//文章是否完成，0是完成，1是草稿
    private int checked;		//文章是否已审核,0表示未审核，１表示已审核
    private int del;		//是否被删除

//	@OneToMany(mappedBy = "objectid")
    private List<Comment> comments;

    private Attach attach;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMainpic() {
        return mainpic;
    }

    public void setMainpic(String mainpic) {
        this.mainpic = mainpic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }

    public int getPhase() {
        return phase;
    }

    public void setPhase(int phase) {
        this.phase = phase;
    }

    public int getChecked() {
        return checked;
    }

    public void setChecked(int checked) {
        this.checked = checked;
    }

    public int getDel() {
        return del;
    }

    public void setDel(int del) {
        this.del = del;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    public Attach getAttach() {
        return attach;
    }

    public void setAttach(Attach attach) {
        this.attach = attach;
    }


    public long getCrtime() {
        return crtime;
    }

    public void setCrtime(long crtime) {
        this.crtime = crtime;
    }

    Article(){}//jpa
}
